package com.hairline.mapper;

import com.hairline.bean.Coupon;
import com.hairline.bean.vo.AllCoupon;
import com.hairline.bean.vo.MyCoupon;
import com.hairline.bean.vo.SelectCouponTotalAndLimit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MyCouponMapper {
    List<MyCoupon> getMyCoupon(@Param("userId") Integer userId, @Param("status") Integer status);

    List<MyCoupon> selectMyCoupon(@Param("userId") Integer userId);

    List<AllCoupon> getAllCoupon();

    Integer selectCouponUser(@Param("userId") Integer userId, @Param("couponId") Integer couponId);
}
